package com.jar.exercise.设计模式.桥接模式;

import org.junit.Test;

public class Client {
    public static void main(String[] args) {
    }

    @Test
    public void test1() {
        DistinguishType model = new FaceModel();
        PayType alipay = new Alipay(model);
        PayType weChat = new WeChat(model);
        System.out.println(alipay.pay());
        System.out.println(weChat.pay());

    }
    @Test
    public void test2() {
        DistinguishType model = new Fingerprint();
        PayType alipay = new Alipay(model);
        PayType weChat = new WeChat(model);
        System.out.println(alipay.pay());
        System.out.println(weChat.pay());

    }
}
